package com.zzyl.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Mytask {

    @Scheduled(cron = "*/10 * * * * ?")
    public void myjob(){
        System.out.println("我正在执行定时任务-----");
    }
}
